import { axiosLogin } from '../index'
//获取商品列表
export function getGoodsList(query, pagenum, pagesize) {
    return axiosLogin({
        url: '/goods',
        method: 'get',
        params: {
            query,
            pagenum,
            pagesize
        }
    })
}
//删除商品列表
export function delGoodsList(id) {
    return axiosLogin({
        url: `/goods/${id}`,
        method: 'delete',
    })
}
// 添加商品参数
export function changeGoodsCs(id, sel) {
    return axiosLogin({
        url: `/categories/${id}/attributes`,
        method: 'get',
        params: {
            sel
        }
    })

}